package org.ysu.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName family
 */
@TableName(value ="family")
@Data
public class Family implements Serializable {
    /**
     * 贫困户编号
     */
    @TableId(type = IdType.AUTO)
    private Integer fId;

    /**
     * 户主编号
     */
    private Integer pId;

    /**
     * 地区id
     */
    private Integer rId;

    /**
     * 帮扶人id
     */
    private Integer vcId;

    /**
     * 省
     */
    private String province;

    /**
     * 市
     */
    private String city;

    /**
     * 县
     */
    private String country;

    /**
     * 乡
     */
    private String township;

    /**
     * 村
     */
    private String village;

    /**
     * 家庭介绍
     */
    private String introduce;

    /**
     * 可能返贫
     */
    private Integer poverty;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fId=").append(fId);
        sb.append(", pId=").append(pId);
        sb.append(", rId=").append(rId);
        sb.append(", vcId=").append(vcId);
        sb.append(", province=").append(province);
        sb.append(", city=").append(city);
        sb.append(", country=").append(country);
        sb.append(", township=").append(township);
        sb.append(", village=").append(village);
        sb.append(", introduce=").append(introduce);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", poverty=").append(poverty);
        sb.append("]");
        return sb.toString();
    }
}